﻿@model QuanLyGiaoVuUI.Models.SinhVien.SinhVienViewModel
@{
    Layout = null;
}

<div>
    <div class="titlenews">THÔNG TIN</div>
    <div style="padding:5px;font-size:18px;font-weight:bold;">
        <table>
            <tr>
                <td>Sinh viên:</td>
                <td>@Model.HoTenSV</td>
            </tr>
            <tr>
                <td>MSSV:</td>
                <td>@Model.MaSinhVien</td>
            </tr>
            <tr>
                <td>Ngày Sinh:</td>
                <td>@Model.NgaySinh.ToShortDateString()</td>
            </tr>
            <tr>
                <td>Giới tính:</td>
                @if (Model.GioiTinh == 1)
                    { 
                        <td>Nam</td>
                    }
                 else
                 {
                    <td>Nữ</td>
                }
            </tr>
        </table>
        <div><input type="button" href="#" id="svdangxuat" value="Đăng Xuất" /></div>
    </div>
</div>
 <script>
        $(document).ready(function () {            
            $('#svdangxuat').click(function () {
                $.post("/SinhVien/DangXuat", {}, function (data) {
                    //alert(data.success);
                    window.location = data.success;
                });
            });
        });
    </script>